\newcommand{\sectionmajornumbering}
{
    % \renewcommand*{\thesection}{\arabic{section}}

    \counterwithin*{figure}{section}
    \renewcommand{\thefigure}{\arabic{section}.\arabic{figure}}

    \counterwithin*{table}{section}
    \renewcommand{\thetable}{\arabic{section}.\arabic{table}}

    \counterwithin*{lstlisting}{section}
    \renewcommand{\thelstlisting}{\arabic{section}.\arabic{lstlisting}}

    \counterwithin*{equation}{section}
    \renewcommand{\theequation}{\arabic{section}-\arabic{equation}}
}

\newcommand{\chaptermajornumbering}
{
    \counterwithin*{figure}{chapter}
    \renewcommand{\thefigure}{\arabic{chapter}.\arabic{figure}}

    \counterwithin*{table}{chapter}
    \renewcommand{\thetable}{\arabic{chapter}.\arabic{table}}

    \counterwithin*{lstlisting}{chapter}
    \renewcommand{\thelstlisting}{\arabic{chapter}.\arabic{lstlisting}}

    \counterwithin*{equation}{chapter}
    \renewcommand{\theequation}{\arabic{chapter}-\arabic{equation}}
}

\newcommand{\numberingstyle}
{
    \ifthenelse{\equal{\Degree}{undergraduate}}
    {
        \ifthenelse{\equal{\undergradcurrstage}{proposal}}
        {
            \chaptermajornumbering
        }
        {
            \sectionmajornumbering
        }
    }
    {
        \chaptermajornumbering
    }
}
